package org.pro.bookkeeping.core.common.util;

import java.text.SimpleDateFormat;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSON;

public class StringUtil {
	public static SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static String WriteJson(Integer retcode, String ExceptionInfo, Object object) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("retCode", retcode);
		map.put("ExceptionInfo", ExceptionInfo);
		map.put("returnString", object);
		return JSON.toJSONString(map);
	}
}
